package com.wvmi.gmall.cart.service;

import com.wvmi.gmall.cart.vo.CartItemVo;
import com.wvmi.gmall.cart.vo.CartVo;

import java.io.IOException;
import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * 描述:   <br>
 *
 * @author Wuminming <br>
 * 创建时间: 2023-12-04 9:40 <br>
 * <p>
 * Copyright: 2013 - 2023 www.szwcyq.com Inc. All rights reserved. <br>
 * 注意：本内容仅限于深圳市微创云启科技有限公司内部传阅，禁止外泄以及用于其他的商业目的<br>
 */
public interface CartService {
    CartItemVo addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException, IOException;

    CartItemVo getCartItem(Long skuId) throws IOException;

    CartVo getCart() throws IOException, ExecutionException, InterruptedException;

    void deleteIdCartInfo(Integer skuId);

    void changeItemCount(Long skuId, Integer num) throws IOException, ExecutionException, InterruptedException;

    void checkItem(Long skuId, Integer checked) throws IOException;

    List<CartItemVo> getUserCartItems();
}
